﻿<%@ page contentType="text/html; charset=UTF-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>网页留言板</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="this is my page"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
  </head>
  
  <body>
  <div align="center"><h2>请输入留言内容</h2>
  </div>
  <div align="right">
  <h3><a href="listGuestbook.action">查看留言</a>&nbsp;&nbsp;
   <a href="login.action">管理员登陆</a></h3>
 
 </div>
  <form name="form1" method="post" class="required-validate" action="addGuestbook.action">
    <table width="642" height="284" border="0" cellpadding="0" cellspacing="5">
      <tr>
        <td>姓名</td>
        <td><label>
          <input name="name" class="required" type="text" size="40" />
        </label></td>
      </tr>
      <tr>
        <td>email</td>
        <td><label>
          <input name="email" class="validate-email" type="text"  size="40" />
        </label></td>
      </tr>
      <tr>
        <td>手机</td>
        <td><label>
          <input name="phone" class="validate-mobile-phone" type="text" size="40" />
        </label></td>
      </tr>
      <tr>
        <td>标题</td>
        <td><label>
          <input name="title" class="required" type="text" size="40" />
        </label></td>
      </tr>
      <tr>
        <td valign="top">内容</td>
        <td><label>
          <textarea name="content" id="context" class="ckeditor" ></textarea>
        </label></td>
      </tr>
	  <tr>
        <td colspan="2" align="center"><label>
          <input type="submit" name="Submit" value="提交" onClick="return checkform()">
        </label> </td>
      </tr>
    </table>
  </form>
  <p>&nbsp;</p>
  </body>
  
</html>
